package com.zhixi.pattern.notimportant.commandpattern.operation;

import com.zhixi.pattern.notimportant.commandpattern.operation.receiver.CodeGroup;
import com.zhixi.pattern.notimportant.commandpattern.operation.receiver.PageGroup;
import com.zhixi.pattern.notimportant.commandpattern.operation.receiver.RequirementGroup;

/**
 * 命令
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/17 10:39
 */
public abstract class Command {

    /* 代码组 */
    protected CodeGroup codeGroup = new CodeGroup();
    /* 页面组 */
    protected PageGroup pageGroup = new PageGroup();
    /* 需求组 */
    protected RequirementGroup requirementGroup =  new RequirementGroup();

    /**
     * 子类重写这个方法调用父类，改变需求
     */
    public abstract void execute();

}
